
// Boost Includes ==============================================================
#include <boost/python.hpp>
#include <boost/cstdint.hpp>

// Includes ====================================================================
#include <OpenSG/OSGNode.h>
#include <OpenSG/OSGNodePtr.h>
#include <OsgPtrHelpers.h>

// Using =======================================================================
using namespace boost::python;

// Declarations ================================================================
namespace  {

BOOST_PYTHON_MEMBER_FUNCTION_OVERLOADS(osg_Node_dump_overloads_0_2, dump, 0, 2)


}// namespace


// Module ======================================================================
void Export_src_pyste_gen_Node()
{
    scope* osg_Node_scope = new scope(
    class_< osg::Node, bases< osg::AttachmentContainer > , boost::noncopyable, osg::NodeRefPtr >("Node", no_init)
//        .def_readonly("VolumeFieldMask", &osg::Node::VolumeFieldMask)
//        .def_readonly("TravMaskFieldMask", &osg::Node::TravMaskFieldMask)
//        .def_readonly("ParentFieldMask", &osg::Node::ParentFieldMask)
//        .def_readonly("ChildrenFieldMask", &osg::Node::ChildrenFieldMask)
//        .def_readonly("CoreFieldMask", &osg::Node::CoreFieldMask)
        .def("getType", (osg::FieldContainerType& (osg::Node::*)() )&osg::Node::getType, return_internal_reference< 1 >())
        .def("getType", (const osg::FieldContainerType& (osg::Node::*)() const)&osg::Node::getType, return_internal_reference< 1 >())
        .def("getClassType", &osg::Node::getClassType, return_internal_reference< 1 >())
        .def("getClassTypeId", &osg::Node::getClassTypeId)
        .def("create", &osg::Node::create)
        .def("createEmpty", &osg::Node::createEmpty)
        .def("shallowCopy", &osg::Node::shallowCopy)
        .def("getContainerSize", &osg::Node::getContainerSize)
        .def("getCore", (osg::NodeCorePtr (osg::Node::*)() )&osg::Node::getCore)
        .def("getCore", (osg::NodeCorePtr (osg::Node::*)() const)&osg::Node::getCore)
        .def("setCore", &osg::Node::setCore)
        .def("getParent", &osg::Node::getParent)
        .def("getNChildren", &osg::Node::getNChildren)
        .def("addChild", &osg::Node::addChild)
        .def("insertChild", &osg::Node::insertChild)
        .def("replaceChild", &osg::Node::replaceChild)
        .def("replaceChildBy", &osg::Node::replaceChildBy)
        .def("findChild", &osg::Node::findChild)
        .def("subChild", (void (osg::Node::*)(const osg::NodePtr&) )&osg::Node::subChild)
        .def("subChild", (void (osg::Node::*)(osg::UInt32) )&osg::Node::subChild)
        .def("getChild", &osg::Node::getChild)
        .def("getActive", &osg::Node::getActive)
        .def("setActive", &osg::Node::setActive)
        .def("setTravMask", &osg::Node::setTravMask)
        .def("getTravMask", &osg::Node::getTravMask)
        .def("clone", &osg::Node::clone)
        .def("getSFVolume", &osg::Node::getSFVolume, return_internal_reference< 1 >())
        .def("getSFTravMask", &osg::Node::getSFTravMask, return_internal_reference< 1 >())
        .def("getSFParent", &osg::Node::getSFParent, return_internal_reference< 1 >())
        .def("getSFCore", &osg::Node::getSFCore, return_internal_reference< 1 >())
        .def("getMFChildren", &osg::Node::getMFChildren, return_internal_reference< 1 >())
        .def("getToWorld", (osg::Matrix (osg::Node::*)() )&osg::Node::getToWorld)
        .def("getToWorld", (void (osg::Node::*)(osg::Matrix&) )&osg::Node::getToWorld)
        .def("getVolume", (osg::DynamicVolume& (osg::Node::*)(bool) )&osg::Node::getVolume, return_internal_reference< 1 >())
        .def("getVolume", (const osg::DynamicVolume& (osg::Node::*)() const)&osg::Node::getVolume, return_internal_reference< 1 >())
        .def("getWorldVolume", &osg::Node::getWorldVolume)
        .def("updateVolume", &osg::Node::updateVolume)
        .def("invalidateVolume", &osg::Node::invalidateVolume)
        .def("changed", &osg::Node::changed)
        .def("getBinSize", &osg::Node::getBinSize)
        .def("copyToBin", &osg::Node::copyToBin)
        .def("copyFromBin", &osg::Node::copyFromBin)
        .def("dump", &osg::Node::dump, osg_Node_dump_overloads_0_2())
        .staticmethod("getClassType")
        .staticmethod("create")
        .staticmethod("createEmpty")
        .staticmethod("getClassTypeId")
    );

    scope().attr("CoreFieldId") = (int)osg::Node::CoreFieldId;
    scope().attr("NextFieldId") = (int)osg::Node::NextFieldId;
    scope().attr("ChildrenFieldId") = (int)osg::Node::ChildrenFieldId;
    scope().attr("VolumeFieldId") = (int)osg::Node::VolumeFieldId;
    scope().attr("TravMaskFieldId") = (int)osg::Node::TravMaskFieldId;
    scope().attr("ParentFieldId") = (int)osg::Node::ParentFieldId;

    delete osg_Node_scope;


    register_ptr_to_python<osg::NodePtr>();
    implicitly_convertible<osg::NodeRefPtr, osg::NodePtr>();
    implicitly_convertible<osg::NodePtr, osg::AttachmentContainerPtr>();

    def("RefPtr", &pyopensg::ToRefPtr<osg::NodePtr>);
    def("FCPtr", &pyopensg::ToFcPtr<osg::NodePtr>);
}

